package com.xyzwps.orm.exposed

import com.zaxxer.hikari.HikariDataSource
import org.jetbrains.exposed.sql.Database

object App {
    val db by lazy {
        val ds = HikariDataSource()
        ds.jdbcUrl = "jdbc:mysql://localhost:3306/orm"
        ds.driverClassName = "com.mysql.cj.jdbc.Driver"
        ds.username = "scott"
        ds.password = "tiger"
        Database.connect(ds)
    }
}